/**
 * 公共API
 */
import { http, Method } from "@/utils/request.js";
import api from "@/config/api.js"; 

/**
 * 查询某日三餐
 * 
 */
export function getDailyCateringCon(data) {
  return http.request({
    url: `/api/common/daily-catering/getDailyCateringCon`,
    method: Method.GET,
	params: data,
  });
}

/**
 * 查询日常三餐列表
 * 
 */
export function getListFun(data) {
  return http.request({
    url: "/api/common/daily-catering​/getList",
    method: Method.GET,
	params: data,
  });
}

/**
 * 提交某日三餐
 * 
 */
export function placeOrder(data) {
  return http.request({
    url: `/api/daily-catering-record/placeOrder`,
    method: Method.POST,
	data: data,
  });
}

/**
 * 菜品类别
 * 
 */
export function getCategory(data) {
  return http.request({
    url: "/api/recipe-category/getCategory",
    method: Method.GET,
	params: data,
  });
}

/**
 * 菜品列表
 * 
 */
export function getDish(data) {
  return http.request({
    url: "/api/cfg-dish/getDish",
    method: Method.GET,
	params: data,
  });
}

/**
 * 菜品列表
 * 
 */
export function dishplaceOrder(data) {
  return http.request({
    url: "/api/cfg-dish/placeOrder",
    method: Method.POST,
	data: data,
  });
}

/**
 * 特殊餐食列表
 * 
 */
export function getRecord(data) {
  return http.request({
    url: "/api/special-meals/getRecord",
    method: Method.GET,
	params: data,
  });
}

/**
 * 特殊餐食申请
 * 
 */
export function appSpecialMeals(data) {
  return http.request({
	url:'/api/special-meals/appSpecialMeals',
    method: Method.POST,
	data: data,
  });
}


